package com.example.xitong;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.fragment.app.Fragment;

public class Zs extends Fragment {
    public ConstraintLayout c1,c2,c3,c4,c5;
    View view;

    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.fragment_zs, container, false);

        setC01(view);
        return view;
    }
    public void setC01(View view){
        this.view=view;
        c1=view.findViewById(R.id.cc1);
        c2=view.findViewById(R.id.cc2);
        c3=view.findViewById(R.id.cc3);
        c4=view.findViewById(R.id.cc4);
        c5=view.findViewById(R.id.cc5);

        c1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent();
                intent.setClass(getActivity(), Video_study.class);
                startActivity(intent);
            }
        });
        c2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent();
                intent.setClass(getActivity(), Chinesemedicine.class);
                startActivity(intent);
            }
        });
        //错题库
        c3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent intent = new Intent();
                intent.setClass(getActivity(), wdct.class);
                startActivity(intent);

            }
        });

        c4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent();
                intent.setClass(getActivity(), Xw.class);
                startActivity(intent);
            }
        });
        c5.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent();
                intent.setClass(getActivity(), Dtzy.class);
                startActivity(intent);
            }
        });
    }
}
